/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sc.byahi.user.shared;

import java.util.ArrayList;
import java.util.List;

public class Notice extends AbstractEntity<Long> {
	private static final long serialVersionUID = 1L;

	public static String NOTICE_TEXT = "text";

	protected Long id = null;
	private String noticeText;

	@Override
	public List<String> getUnindexedPropertyNames() {
		List<String> props = new ArrayList<String>();
		props.add(NOTICE_TEXT);
		return props;
	}

	@Override
	public List<String> getIndexedPropertyNames() {
		List<String> props = new ArrayList<String>();
		return props;
	}

	@Override
	public Object getProperty(String key) {
		if (NOTICE_TEXT.equals(key)) {
			return getNoticeText();
		}
		return null;
	}

	public void setProperty(String key, Object value) {
		if (NOTICE_TEXT.equals(key)) {
			setNoticeText((String) value);
		}
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNoticeText() {
		return noticeText;
	}

	public void setNoticeText(String text) {
		this.noticeText = text;
	}
}
